package D_Protoype;

import java.io.IOException;

/**
 * @author 赵超
 * @Description
 * @create 2017-06-06 11:17
 **/
public class Test {

    public static void main(String[] args) throws IOException, ClassNotFoundException, CloneNotSupportedException {
        Prototype prototype = new Prototype();
        Prototype prototype1 = (Prototype) prototype.deepClone();
        System.out.println(prototype.equals(prototype1));
        Prototype prototype2 = (Prototype) prototype.clone();
        System.out.println(prototype.equals(prototype2));
    }
}
